---
title: "README: Meta-Analysis on the Effects of Shared Discrimination on Solidarity and Pro Outgroup Policies"
author: ".."
date: "2025-03-19"
output: pdf_document
---

#Overview
## This zip file contains all necessary materials (R code, data files, intermediate datasets, and results) for conducting a meta-analysis on the effects of shared discrimination on solidarity and pro-outgroup policies. The analysis involves running several steps such as data cleaning, model fitting, mediation analysis, meta-analysis, and creating figures and tables for publication. Below is a comprehensive description of the contents of the zip file, including the variables used, intermediate datasets, and any required packages or libraries.

#1. Submission code for random effects.qmd
## Description: This R Quarto document contains the full analysis and should be conducted in R to reproduce the analysis. It includes the following: 
    - Loading and cleaning the data
    - Creating new variables (such as solidarity, policy indices, etc.)
    - Running regression models
    - Conducting mediation analysis
    - Performing random-effects meta-analysis
    - Generating figures (e.g., forest plots) and tables (e.g., model summaries)
    
#2. Data/Black+Palestine+Solidarity_May+17,+2024_19.19.csv.xlsx
## Description: This file contains the raw dataset with participant responses and other key variables. 
    - Demographic variables: age, education, party id, leaners
    - Treatment variables: SharedDisc (shareddisc), Control_Turtle
    - Mediator and Outcome variables: 
      - Mediator: Solidarity index - solidarity - (Bond_Palestine, Allies_Palestine, CFate_Palestine)
      - Outcome: Policy index - propal - (policy1, policy2, policy3, policy4)

#3. Meta analysis figures
    - Figure 3 submit: Effects of Shared Discrimination on PoC Solidarity 
    - Figure 4 submit: Effects of PoC Solidarity on Pro-Outgroup Policy

#4. R packages requried 
    - tidyverse: A collection of R packages for data manipulation and visualization.
      Installation: install.packages("tidyverse")

    - readxl: Used to read Excel files (.xlsx) into R.
      Installation: install.packages("readxl")
      
    - metafor: Used for performing meta-analysis and generating forest plots.
      Installation: install.packages("metafor")
      
    - stargazer: Used for creating HTML tables summarizing model results.
      Installation: install.packages("stargazer")
